/*
* 命名空间: LogicModel.DataModel
*
* 功 能： SysRole实体类
*
* 类 名： SysRoleEntity
*
* Version   变更日期            负责人     变更内容
* ─────────────────────────────────────────────────
* V1.0.1    2019/02/26 17:33:03 罗维     创建
*
* Copyright (c) 2016 Lir Corporation. All rights reserved.
*/

namespace LogicModel.DataModel
{
    using System;
    using ToolsModel;

    /// <summary>
    /// 角色表
    /// </summary>
    [Serializable]
    [TableInfo(TableName = "SysRole")]
    public class SysRoleEntity
    {

        /// <summary>
        /// 唯一标识符
        /// </summary>
        [FieldInfo(ByteLength = 32,DataLength = 32,DecimalDigits = 0,ColumnName = "gCode",Required = false,DefaultValue = "")]
        public String Code
        {
            get; set;
        }

        /// <summary>
        /// 父节点
        /// </summary>
        [FieldInfo(ByteLength = 32,DataLength = 32,DecimalDigits = 0,ColumnName = "gParentCode",Required = false,DefaultValue = "")]
        public String ParentCode
        {
            get; set;
        }

        /// <summary>
        /// 角色名称
        /// </summary>
        [FieldInfo(ByteLength = 50,DataLength = 25,DecimalDigits = 0,ColumnName = "sName",Required = false,DefaultValue = "")]
        public String Name
        {
            get; set;
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        [FieldInfo(ByteLength = 8,DataLength = 23,DecimalDigits = 3,ColumnName = "dCreateTime",Required = false,DefaultValue = "")]
        public DateTime? CreateTime
        {
            get; set;
        }

        /// <summary>
        /// 排序
        /// </summary>
        [FieldInfo(ByteLength = 4,DataLength = 10,DecimalDigits = 0,ColumnName = "iSort",Required = false,DefaultValue = "")]
        public Int32? Sort
        {
            get; set;
        }

        /// <summary>
        /// 备注
        /// </summary>
        [FieldInfo(ByteLength = 400,DataLength = 200,DecimalDigits = 0,ColumnName = "sContent",Required = false,DefaultValue = "")]
        public String Content
        {
            get; set;
        }

        /// <summary>
        /// 删除标志
        /// </summary>
        [FieldInfo(ByteLength = 1,DataLength = 1,DecimalDigits = 0,ColumnName = "bIsDeleted",Required = false,DefaultValue = "")]
        public Boolean? IsDeleted
        {
            get; set;
        }
    }
}
